package cn.net.sinodata.system.domain.vo;

import java.util.Date;

import cn.net.sinodata.common.translation.annotation.Translation;
import cn.net.sinodata.common.translation.constant.TransConstant;
import com.fasterxml.jackson.annotation.JsonFormat;
import cn.net.sinodata.system.domain.PmConfirmDeadline;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.net.sinodata.common.excel.annotation.ExcelDictFormat;
import cn.net.sinodata.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 确认截止时间视图对象 pm_confirm_deadline
 *
 * @author yinliangyun
 * @date 2025-10-30
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PmConfirmDeadline.class)
public class PmConfirmDeadlineVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private String id;

    /**
     * 产品编号
     */
    @ExcelProperty(value = "产品编号")
    private String productCode;

    /**
     * 产品名称
     */
    @ExcelProperty(value = "产品名称")
    private String productName;

    /**
     * 确认结果截止时间-基准（1：起息日；2：成交日；3：立即）
     */
    @ExcelProperty(value = "确认结果截止时间-基准", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=：起息日；2：成交日；3：立即")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "benchmark")
    private String benchmark;

    /**
     * 确认速度（1：T+0；2：T+1；3：T+2；4：T+1及以上；5：T+2及以上）
     */
    @ExcelProperty(value = "确认速度", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=：T+0；2：T+1；3：T+2；4：T+1及以上；5：T+2及以上")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "confirm_rate")
    private String confirmRate;

    /**
     * 确认时间
     */
    @ExcelProperty(value = "确认时间点")
    @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
    private Date confirmTime;

    /**
     * 单笔处理时长
     */
    @ExcelProperty(value = "单笔处理时长")
    private String processingTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remarks;

}
